/*
 * GuudLock.cpp
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#include "GuudLock.h"
namespace guud {
GuudLock::GuudLock() {
	m_bufferLock = SDL_CreateMutex();
}
GuudLock::~GuudLock() {
	SDL_DestroyMutex(m_bufferLock);
}
void GuudLock::lock() {
	SDL_mutexP(m_bufferLock);
}
void GuudLock::unlock() {
	SDL_mutexV(m_bufferLock);
}
}
